package global;

public interface GlobalConst {

	// Btree file names
	  public static final String PREDICATE_TID_INDEXFILE= "Predicate_TID_Indexfile";
	  public static final String SUBJECT_TID_INDEXFILE = "Subject_TID_Indexfile";
	  public static final String OBJECT_TID_INDEXFILE = "Object_TID_Indexfile";
	  public static final String CONF_TID_INDEXFILE = "Conf_TID_Indexfile";
	  
	  public static final String SUB_PRED_COMPOSITEINDEX = "Sub_Pred_compositeIndex";
	  public static final String PRED_OBJ_COMPOSITEINDEX = "Pred_Obj_compositeIndex";
	  public static final String SUB_CON_COMPOSITEINDEX = "Sub_Con_compositeIndex";
	  public static final String PRED_CON_COMPOSITEINDEX = "Pred_Con_compositeIndex";
	  public static final String OBJ_CON_COPOSITEINDEX = "Obj_Con_compositeIndex";
	  public static final String SUB_OBJ_COMPOSITEINDEX = "Sub_Obj_compositeIndex";
	  
	  public static final String SPO_COMPOSITEINDEX = "SPO_compositeIndex";
	  
	  public static final String PREDICATE_LID_INDEXFILE = "Predicate_LID_Indexfile";
	  public static final String ENTITY_LID_INDEXFILE = "Entity_LID_Indexfile";
	  
	  //heap file names
	  public static final String TRIPLE_HEAPFILE = "Triple_heapfile";
	  public static final String PREDICATE_HEAPFILE = "Predicate_heapfile";
	  public static final String ENTITY_HEAPFILE = "Entity_heapfile";
  	
	
  public static final int MINIBASE_MAXARRSIZE = 50;
  public static final int NUMBUF = 50;

  /** Size of page. */
  public static final int MINIBASE_PAGESIZE = 1024;           // in bytes

  /** Size of each frame. */
  public static final int MINIBASE_BUFFER_POOL_SIZE = 1024;   // in Frames

  public static final int MAX_SPACE = 1024;   // in Frames
  
  /**
   * in Pages => the DBMS Manager tells the DB how much disk 
   * space is available for the database.
   */
  public static final int MINIBASE_DB_SIZE = 10000;           
  public static final int MINIBASE_MAX_TRANSACTIONS = 100;
  public static final int MINIBASE_DEFAULT_SHAREDMEM_SIZE = 1000;
  
  /**
   * also the name of a relation
   */
  public static final int MAXFILENAME  = 15;          
  public static final int MAXINDEXNAME = 40;
  public static final int MAXATTRNAME  = 15;    
  public static final int MAX_NAME = 50;

  public static final int INVALID_PAGE = -1;
}
